package com.yydream.service;

import com.yydream.common.utils.R;
import com.yydream.dto.CommonUserDTO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {
    R login(CommonUserDTO user, HttpServletRequest request);

    R logout();

    R register(CommonUserDTO userDTO, HttpServletRequest request);

    R captcha(HttpServletRequest request);

    R uploadFile(MultipartFile file);

    R uploadImg(MultipartFile file);
}
